<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- 管理端，导航菜单代码片段 -->
<div class="layui-row" th:fragment="system_menu(index)">
	<ul class="layui-nav layui-bg-green">
		<!-- 注销 -->
		<li class="layui-nav-item" th:classappend="${index eq '首页'} ? 'layui-this'">
			<a href="/system">首页</a>
		</li>
		
		<li th:each="menu,iterStat:${session.USER_MENU_KEY}" th:class="layui-nav-item" th:classappend="${index eq menu.name} ? 'layui-this'"><a th:href="@{${menu.url}}" th:text="${menu.name}"></a>
			<dl th:if="${not #lists.isEmpty(menu.childList)}" th:class="layui-nav-child">
				<dd th:each="child,childStat:${menu.childList}">
					<a th:href="@{${child.url}}" th:text="${child.name}"></a>
				</dd>
			</dl>
		</li>
		
		<!-- 系统监控 -->
		<li th:class="layui-nav-item" th:classappend="${index eq '系统监控'} ? 'layui-this'">
			<a href="/monitoring">系统监控</a>
		</li>
			
		<!-- 系统监控 -->
		<li th:class="layui-nav-item" th:classappend="${index eq 'SWAGGER2'} ? 'layui-this'">
			<a href="/swagger-ui.html">SWAGGER2</a>
		</li>	
		
		<!-- 注销 -->
		<li th:class="layui-nav-item">
			<a href="javascript:logout();">注销</a>
		</li>
	</ul>
	
	
	<script th:inline="none">
	/*<![CDATA[*/
		
	function logout(){
		layer.open({
			content : "确定要注销吗？",
			yes : function(index, layero) {
				window.location.href="/logout";
			}
		});
	};
		
	/*]]>*/
	</script>
</div>



<!-- 管理端，当前位置的代码片段 -->
<div class="layui-row yy-margin-top-10" th:fragment="system_location(value1, value2)">
	<span class="layui-breadcrumb">
		<a href="javascript:void(0);" th:text="${value1}"></a>
		<a href="javascript:void(0);" th:text="${value2}"></a>
	</span>
</div>

<!-- 管理端，当前位置的代码片段,(三级路径) -->
<div class="layui-row yy-margin-top-10" th:fragment="system_locations(value1, value2, value3)">
	<span class="layui-breadcrumb">
		<a href="javascript:void(0);" th:text="${value1}"></a>
		<a href="javascript:void(0);" th:text="${value2}"></a>
		<a href="javascript:void(0);" th:text="${value3}"></a>
	</span>
</div>